﻿namespace NEnsure.Rules
{
	public class USZipCodeRule : RegexRule
	{
		public override string RuleKey
		{
			get { return "US ZipCode Rule"; }
		}

		public USZipCodeRule()
			: base(@"^\d{5}([\-. ]?\d{4})?$", "{value} is not a valid zip code. It needs to be of format 12345 or 12345-1234.")
		{

		}
	}
}
